package com.heys.api;

import java.util.Arrays;

/**
 * Str String final 不可变
 * UML
 */
public class Str {

	public static void main(String[] args) {

		String string = "abc";
		if(string.startsWith("a")||string.endsWith("c")){
			System.out.println(string.toUpperCase());
			System.out.println();
			
		}

		// String str = "";//空白串
		// System.out.println(str.length());
		// String str2 = null;//啥也没有
		// System.out.println(str2.length());
		/* char s = 'a';
		System.out.printf("%d\n",(int)s);
		System.out.printf("%d\n",(int)'A');
		System.out.println("b".compareTo("c")); */

		//System.out.println("aa".equalsIgnoreCase("aA"));
		
		//System.out.println("a".equals("a"));
		// String sw = "1/s/w";
		// String[] all = sw.split("/");

		// System.out.println(Arrays.asList(all));

		// String alls = String.join("/", "1","s","w");
		// System.out.println(all);

		// String alls = String.join(".", new String[] { "1", "2", "3" });
		// System.out.println(alls);
	}

	public void aa(String... e) {
		System.out.println(e.length);
		int i = 0;
		while (i < e.length) {
			++i;
			System.out.println(e[i]);
		}
	}

}